<template>
  <div>
    <!-- 导航 -->
    <header>
      <ul>
        <li>
          <router-link exact-active-class="current" to="/found"
            >推荐</router-link
          >
        </li>
        <li>
          <router-link exact-active-class="current" to="/found/top"
            >排行榜</router-link
          >
        </li>
      </ul>
    </header>

    <!-- 显示对应的三级路由组件 -->
    <router-view></router-view>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
ul {
  list-style: none;
  width: 50%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;

  li {
    margin: 0 10px;
    a {
      display: block;
      text-decoration: none;
      color: #ccc;
      font-size: 12px;
      padding: 5px 15px;
      border-radius: 20px;
    }
  }
}

// .router-link-exact-active {
//   background-color: #9b0909;
//   color: #fff;
// }

.current {
  background-color: #9b0909;
  color: #fff;
}

header {
  height: 35px;
  box-sizing: border-box;
  background-color: #c20c0c;
  border-bottom: 1px solid #a40011;
}
</style>
